/*
 * 导入资源文件及样式
 */
import './css/framework7.ios.min.css';
import './css/framework7.ios.colors.min.css';
import './css/font-awesome.min.css';
import './js/lib/framework7.min.js';
import util from './js/util.js';
import moment from 'moment';
import store from './js/store/index.js'
import commponts from './commponts/index.js';
//import Vue from 'vue';
var myApp = new Framework7({
    pushState: false
});
var $$ = Dom7;
var mainView = myApp.addView('.view-main', {
    dynamicNavbar: true,
    modalTitle: '提醒',
    modalButtonOk: '确定',
    modalButtonCancel: '取消'
});
var device = myApp.device;
util.appendEmByWidth(); //初始化 rem

//测试信息
myApp.onPageInit('index', function(e) { //进入页面
    console.log('index');
});

//测试信息
myApp.onPageInit('test', function(e) {
    console.log('test')
    require.ensure([], function(e) {
        let jsObj = require('./js/test.js');
        jsObj.init();
    });
});

myApp.onPageInit('aa', function(e) {
    //console.log(e.query);
    var query = e.query
    require.ensure([], function(e) {
        let jsObj = require('./js/aa.js');
        jsObj.init(query);
    });

});

/* 导出变量 */
export { myApp, $$, mainView, util, store, commponts }